<template>
  <div class="index-page">
    <div class="data-statistics">
      <div class="section-header">
        <div class="title">数据统计</div>
      </div>
      <div class="section-content">
        <div class="item">
          <div class="left">
            <div class="value">2</div>
            <div class="label">门店组总数</div>
          </div>
          <div class="right">
            <img src="@/assets/images/index/data-statistics-1.png" />
          </div>
        </div>
        <div class="item">
          <div class="left">
            <div class="value">9</div>
            <div class="label">门店组</div>
          </div>
          <div class="right">
            <img src="@/assets/images/index/data-statistics-2.png" />
          </div>
        </div>
        <div class="item">
          <div class="left">
            <div class="value">9</div>
            <div class="label">机台总数</div>
          </div>
          <div class="right">
            <img src="@/assets/images/index/data-statistics-3.png" />
          </div>
        </div>
        <div class="item">
          <div class="left">
            <div class="value">0</div>
            <div class="label">可用部署码</div>
          </div>
          <div class="right">
            <img src="@/assets/images/index/data-statistics-4.png" />
          </div>
        </div>
      </div>
    </div>
    <div class="operator-guide">
      <div class="section-header">
        <div class="title">操作向导</div>
      </div>
      <div class="section-content">
        <div class="item">
          <div class="item-inner">
            <img src="@/assets/images/index/operation-guide-1.png" alt="" />
            <div>
              <div class="title">第一步：创建门店</div>
              <el-button class="btn" type="primary">门店管理</el-button>
            </div>
            <div class="arrow">
              <img src="@/assets/images/index/index-arrow.png" alt="" />
            </div>
          </div>
        </div>
        <div class="item">
          <div class="item-inner">
            <img src="@/assets/images/index/operation-guide-2.png" alt="" />
            <div>
              <div class="title">第二步：设置机台部署模版</div>
              <el-button class="btn" type="primary">机台部署模版</el-button>
            </div>
            <div class="arrow">
              <img src="@/assets/images/index/index-arrow.png" alt="" />
            </div>
          </div>
        </div>
        <div class="item">
          <div class="item-inner">
            <img src="@/assets/images/index/operation-guide-3.png" alt="" />
            <div>
              <div class="title">第三步：设置机台部署号</div>
              <el-button class="btn" type="primary">创建机台部署号</el-button>
            </div>
            <div class="arrow">
              <img src="@/assets/images/index/index-arrow.png" alt="" />
            </div>
          </div>
        </div>
        <div class="item">
          <div class="item-inner">
            <img src="@/assets/images/index/operation-guide-4.png" alt="" />
            <div>
              <div class="title">第四步：机台管理</div>
              <el-button class="btn" type="primary">机台管理</el-button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>


<script setup>
</script>

<style lang="scss" scoped>
.data-statistics {
  background: #fff;
  border-radius: 10px;
  .section-header {
    height: 54px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: $mainTextColor;
    border: 1px solid $lineColor;
  }

  .section-content {
    height: 120px;
    @include flex-hcenter();
    .item {
      flex: 1;
      @include flex-hcenter();
      justify-content: space-between;
      border-right: 1px solid $lineColor;
      padding: 0 40px;
      font-size: 14px;
      img {
        height: 56px;
        width: 56px;
      }
      .value {
        font-size: 28px;
        color: $mainTextColor;
        font-weight: 600;
      }
    }
  }
}

.operator-guide {
  background: #fff;
  border-radius: 10px;
  margin-top: 12px;
  .section-header {
    height: 54px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: $mainTextColor;
    border: 1px solid $lineColor;
  }

  .section-content {
    @include flex-hcenter();
    padding: 20px 20px;
    box-sizing: border-box;
    .item {
      justify-content: space-between;
      background: rgba(48, 127, 237, 0.1);
      box-sizing: border-box;
      margin-right: 20px;
      flex-direction: column;
      border-radius: 10px;
      flex: 1;
      .item-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px;
        position: relative;
        .arrow {
          position: absolute;
          top: 40%;
          right: -80px;
          img {
            width: 102px;
            height: 40px;
          }
        }
      }
      .title {
        font-size: 16px;
        color: $blueColor;
        margin: 20px 0;
        font-weight: 600;
        min-width: 140px;
        white-space: nowrap; /* 确保文本不换行 */
        overflow: hidden; /* 隐藏溢出的内容 */
        text-overflow: ellipsis; /* 显示省略符号来代表被修剪的文本 */
      }
      .btn {
        height: 54px;
        width: 100%;
        font-size: 16px;
        background-color: $blueColor;
      }
      img {
        width: 140px;
        height: 360px;
      }
    }
  }
}
</style>
